<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var a = 1;
    a = true;
    // 控制台日志打印
    console.log(a);
    // 弹框
    alert(a);
  </script>
  <script src="./2-if.js">
  </script>
</head>

<body>

</body>

</html>